package entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp implements Serializable {
    private int empno;
    private String ename;
    private String job;
    private int mgr;
    private int deptno;
    private double sal;
    private Dept dept;
    private String hiredate;

    public Emp(int empno, String ename, String job, Dept dept, double sal) {
        this.empno = empno;
        this.ename = ename;
        this.job = job;
        this.dept = dept;
        this.sal = sal;
    }
}
